/**
 * @author 陈泰来
 * @version V1.0
 * @Project echo-java-base
 * @Title 强引用案例
 * @Description *
 * @Package base.quote
 * @date 2020/10/25 9:22 下午
 * @Copyright:学如逆水行舟，不进则退 .
 */
package base.quote.strong;

import java.io.IOException;

public class StrongR {

    @Override
    protected void finalize() throws Throwable {
        System.out.println(StrongR.class.getName() + "已被GC回收");
    }

    public static void main(String[] args) throws IOException {
        StrongR strongCitation = new StrongR();
        strongCitation = null;
        System.gc();
        System.in.read();
    }
}
